package com.hiray.demos.ui_architect.litho

import com.hiray.demos.IndexActivity
import com.hiray.demos.quickStartActivity

class LithoIndexActivity : IndexActivity() {

    val data = arrayListOf("Hello World",
            "Litho 构建简单列表",
            "ele 商家列表",
            "GroupSectionSpec")

    override fun getData(): List<String> = data

    override fun handleItemClick(index: Int, title: String) {
        when (index) {
            0 -> quickStartActivity(LithoActivity::class.java)
            1 -> quickStartActivity(LithoSimpleRecyclerViewActivity::class.java)
            2 -> quickStartActivity(EleBusinessListActivity::class.java)
            3 -> quickStartActivity(GroupSectionSpecActivity::class.java)
        }
    }


}
